home *** CD-ROM | disk | FTP | other *** search
- Path: mac007016.shef.ac.uk!user
- From: m.b.greenwood@sheffield.ac.uk (Mike Greenwood)
- Newsgroups: comp.lang.c
- Subject: Re: How to make it BEEP ?
- Date: Mon, 25 Mar 1996 07:45:05 +0000
- Organization: University of Sheffield
- Message-ID: <m.b.greenwood-2503960745050001@mac007016.shef.ac.uk>
- References: <4inmv1$ljj@sunburst.ccs.yorku.ca> <4is9tf$8o3@spanky.pls.ov.com>
- NNTP-Posting-Host: mac007016.shef.ac.uk
-
- In article <4is9tf$8o3@spanky.pls.ov.com>, glenn@ov.com wrote:
-
- > In article ljj@sunburst.ccs.yorku.ca, "Shahed A. Quazi"
- <cs942112@ariel.cs.yorku.ca> writes:
- > >Hi,
- > >
- > >I was wondering if anyone would be kind enough to tell me if there is a
- > >C function on unix that I can use to make a beep sound. If it's not
- > >there,I would really appreciate if someone could give me the code.
- > >
- > >Actually, I'm writing a very simple program where I need it to beep if
- > >the user enters the input in wrong format.
- > >
- > >Thanks.
-
- Hi everyone,
-
- I'm sure the previous reply to this posting works also, but a simpler one is:-
-
- /* sound the bell */
- printf("\a");
-
- where the 'a' means audiable bell. This works great on our Sun
- Sparcstations, and I'm pretty sure that it's ANSI.
-
- Cheers
-
- Mike Greenwood
-